package com.woniu.common.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.woniu.common.annotation.Excel;
import com.woniu.common.core.domain.BaseEntity;

/**
 * 员工角色与权限关系对象 sms_role_permission_relation
 * 
 * @author woniu
 * @date 2024-10-21
 */
public class SmsRolePermissionRelation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 角色ID */
    @Excel(name = "角色ID")
    private Integer roleId;

    /** 权限ID */
    @Excel(name = "权限ID")
    private Integer permissionId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setRoleId(Integer roleId) 
    {
        this.roleId = roleId;
    }

    public Integer getRoleId() 
    {
        return roleId;
    }
    public void setPermissionId(Integer permissionId) 
    {
        this.permissionId = permissionId;
    }

    public Integer getPermissionId() 
    {
        return permissionId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("roleId", getRoleId())
            .append("permissionId", getPermissionId())
            .toString();
    }
}
